/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.MultipartRequest;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.support.StandardServletMultipartResolver;

/**
 * <p>Project: SpringMVCPro - FileConfig</p>
 * <p>Powered by yzc On 2023-11-02 15:20:21</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Configuration
public class FileConfig {
    /**
     * 注入文件上传解析器  要求方名称必须是multipartResolver
     * @return
     */
    @Bean
   public MultipartResolver multipartResolver(){
       return new StandardServletMultipartResolver();
   }
}
